<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ page import="java.util.Iterator" %>    
 <%@ page import="model.CategoryBean" %>
<!DOCTYPE html>
<%Iterator<CategoryBean> categories = (Iterator<CategoryBean>)request.getAttribute("categories");
CategoryBean category;
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Изберете категория</title>
<link rel="stylesheet" href="/Store/css/Administration.css" type="text/css">

</head>
<body>
<div class="container">
<div class="main">
<form action="/Store/ChooseCategory" method="post" autocomplete="off">
<table class="center">
	<tr class="categories">
		<td>Изберете категория:</td>
		<td>
			<select name="categoryName">
				<% while(categories.hasNext()){
					category = categories.next(); %>
					<option value="<%=category.getName()%>"> <%=category.getName()%></option>
				<%}%>
			</select>
		</td>
	</tr>
	<tr>
		<td> Минимална цена: </td> <td> <input type="number" name="minPrice"> </td>
	</tr>
	<tr>
		<td> Максимална цена: </td> <td> <input type="number" name="maxPrice"> </td>
	</tr>
	
	<tr>
		<td> Минимален брой: </td> <td> <input type="number" name="minCount"> </td>
	</tr>
	<tr>
		<td> Максимален брой: </td> <td> <input type="number" name="maxCount"> </td>
	</tr>
	
	<tr>
		<td> <input type="submit" value="Продължи"></td>
		<td class="cancel"> <a href="Supplier.html"> <button type="button"> Отмени </button> </a></td>
	</tr>
</table>
</form>
</div>
</div>
	
</body>
</html>